﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaintainStabilityGrid.aspx.cs" Inherits="FantastPlatform.Decision.UI.MaintainStabilityGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var msg = new FantastPlatform.UI.MaintainStabilityGrid({
            renderTo: 'msg_div',
            url: '../Service/MaintainStabilityViewService.aspx?Action=Search',
            width: tabs.getInnerWidth() - 5,
            height: tabs.getInnerHeight() - 5,
            border: false,
            tbar: [{
                text: '新建',
                iconCls: 'add',
                tooltip: {
                    text: '新建',
                    autoHide: true
                },
                handler: function () { msg.onAddMaintainStabilityClick(); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                tooltip: {
                    text: '选择要编辑的社情维稳信息',
                    autoHide: true
                },
                handler: function () { msg.onEditMaintainStabilityClick(); }
            }
//            , '-', {
//                text: '查询',
//                iconCls: 'search',
//                tooltip: {
//                    text: '按照条件查询社情维稳信息',
//                    title: '查询通知',
//                    autoHide: true
//                },
//                handler: function () { msg.onSearchClick(); }
//            }
            , '-', {
                text: '删除',
                iconCls: 'delete',
                tooltip: {
                    text: '删除选中的社情维稳信息',
                    title: '删除选中的社情维稳信息',
                    autoHide: true
                },
                handler: function () { msg.onDeleteClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '重新更新列表内容',
                    title: '重新更新列表内容',
                    autoHide: true
                },
                handler: function () { msg.onUpdataMaintainStabilityClick(); }
            }, '-', {
                text: '查看批示',
                iconCls: 'edit',
                tooltip: {
                    text: '查看批示',
                    title: '查看批示',
                    autoHide: true
                },
                handler: function () { msg.onCommentsClick(); }
            }]
        });
        msg.addListener('rowdblclick', function () { msg.onEditMaintainStabilityClick(); });
        msg.onUpdataMaintainStabilityClick();
    </script>
</head>
<body>
    <div id="msg_div">
    </div>
</body>
</html>
